Edited variable and added comments