Added way of binding command to method