Begin implementing the template magic