refactor code to allow for configuration

I wanted to allow the user to pass in a message on an individual basis, otherwise fall back to the default.