Updated die(). Modified record_log_activity '.