MAD noise detector added.