Added smooth opt for best curves