Added minimum step to gradient optimizer.