Implemented functionality for handling commands.