Comments added for clarity