Refine capture template