Added sleep

Added sleep so server wont take 100% of a cpu core