Adding static refinement function