Experimenting with templating. So far, not working so great.