Make compatible with Sails v0.10