I should have added some comments to the code. Sorry for the confusion!