Moved CommandMethod to core library