Rewrite mask.parse because of unfixable bugs.
More bug fixes to Mask()
Final round of bugfixes.