Oh dear God this was messy