Moved default priority to listener and removed unneeded constants.