Implemented Command Functionality