Identifying template candidates