Initialise object when unpickling