Slight algo adjustment