Create settings and event struct