Commented the code a bit