Changed variable to boolean