Use enum for cnc