I would make an object literal that holds pollRate and poll.