Change code to handle poll interval in mill-seconds