Made command execute a class method