Adding better string format and missing sleep(10)