Added code for clicking a button.