Updates Improved the Regex stuffs, and added helper code.