Shorten template and clean up formatting.