Refining instructions and references