A bit of messing around trying to make this work