Added comments for clarifying the code.