Factored config out. Implemented patch and build.