Additional comments added for clarity