Implemented enum for lastcommand sent