Arrgh I've turned this thing into a mess

Signed-off-by: Michael Donaghy <md401@srcf.ucam.org>