Implement instruction replacer