Use template instead of file, use variables