Add functionality to getCommandType and getCommandDetails methods