Adding middleware to collections
0.0.12