Removed sleep(1) but needs to come back for dgt probe