Method % doesn't work in templates, use apply instead