Changed variable initialisation