Any reason for not putting this in the template directly?