Forgot to add the :log lock. Also added a build-exe function