Adding support for logging user activities