Added events, timers, UDP and tests