Added functions to process the program, some to customstring