Changed variable name and added some comments