Added comments for clarity, no changes to code'