The red lines are for the version of the code using subroutine. You can delete them.

I recommend using the port toggle instead of the Pulsout command though.

Ioannis