Implemented toggle pin command