Added methMDS function