removed unneeded event-type check, added inactivity event, enabled screenProtection, added console output.