Compiles now but need to check to see if it does the tokenization and memory allocation correctly.