Added some models and middlewares.