Compile script for constant updating