Making sure the initialPosition value is only read once