Added stubs, configured middleware.