Create templateWithQueue