Change MAJOR() etc to major() etc