Removed sleep and sleep output when interval is zero