Updated version with high bits intact.