move where we wait to control speed

wait right before we right to the port to keep timing much closer to
accurate.