Removed regex lib.
Got type mask working with prototypes.