Analytics

Solves #4, directly used Matthias' suggestion.