Changed the polling time to be a flag