Added comments for readability