Computationaly expensive version of refinement