Thank you for the automatic formatting trick! I didn't even know that existed. Also, thank you for pointing out both of my syntax errors. I still don't think the code is structured properly. I don't get any serial print "Machine on" when Pin4 receives power. Any insight? Thanks