Started on logging
Should be collecting data
Respect user preferences and don't break for current users
Added code to finish logging