IDI-104: Messy version of shortcode implementation. Works, but could use cleaning up.