Improve background build process