Made -grayed and -active templates optional