Added option to change polling interval