Updated template based on jacebrowning/doorstop.