Added possibility to log user interactions.