Failed attempt at templating