Refining orders and templates