Compile script