Added message control to break out of loop is all messages had been attempted and switched the sleep order.
Merge pull request #6 from juanshishido/master

Added message control to break out of loop is all messages had been atte...