Updated code to add metropolis minimizer support for LTMD