Changes to the input class, just added polling events