Adding a setTimeout to poll for data