Added missing parameter to the compile function