Changed variable to z