Implemented old build code in Build class