Added warning to setOccupant.