SM-2673: Add more flexibility to customize output (closes #1) Thanks to Michael Scharp for the patch!!!