Front-end enhanced, now with classes and event creation callback.