Add Middleware and Context base