Switched to define() for constant definitions and updated all calls to constants.