Removed the copyright and refacored the PollContext