Basic fetching middlewares. Kinda closes #476.