Adding middleware loop, linting.