Updated metrics to use a decorator, and moved the API key into the local settings for wpm