Fixed major bug that was calling minimizer much more often than necessary.