This is a bit smelly - an accessor mutating the object - and I am not sure why it's necessary - see comment below.