Reverting part of the changes to make 'compileFn' exposed