Commented the code a little