MultiScale+CostFunction done NOT WORKING