Added button polling script