Context ready for serialisation