Added the return functions to add regexes