Cleaned up shim config. Added an external template.