Better data compilation and template printing