Frame limiter and event handling
Error handling