Changed base definition, made refine_base.