Activity Logging Hack code.