Template now takes object