Added constants to the code for easy configuration.