Using events and instructions