Add delay to recompiling and fix linting race condition