Moved event classed into model.