Edited comments to accurately reflect original functions