Add logging to compile script