Added new thread for button. Big improvement on timing button press