Added logging function
Hmm ... probably shouldn't press that button again