Cleanup and using custom template when plugin is in use. Refs #4.