Code is now compiled and events can be set