Add settings and events