Event scripts: functions file now intercepts status and setstatus.