Refine Operations with a Custom-Crafted ATG