Fixed the compile function that broke during the merge