Moved some constants to the top of the file