Added basic middleware component.