Analytic added

This is still wrong. Ping me when you're free and we can go through how this is supposed to work.