Splitting the listener out of the main plugin file.