added support for doubles for polling/interval time