record_log_activity updated (not tested)