Added comments as per requirements.