It's actually a full copy/paste of @pjedrzejewski's class, so I'm not sure I want to take credit on this file ;)