Got button clicking working eventually.