Refined output order; proper staging directives