Changed interval to seconds to match PHP sleep() input
Start with the loop logic