Added the command function