Refine the configurations