Changed melting algorithm again. Much better. May improve.