Compile and wrap