AfterBuild, deprecated code replacement