added sleep

added sleep time of 1 second to end of script to save cpu cycles.