Adds static middleware