Added datetime middleware.