First algorithm pass