Add in analytics. Closes #2