Do some refinement