Serial.write stops working if not used?

If anyone wants to see the full program, let me know.

Do you want help or pointless sarcastic speculation?