Trying to add minimization routine...