Listener

Does this work well as a listener?
Here you can use @subdomain and @access_key directly, no need for lines 85,86.