Added generalized build_object