Add Basic Template Error Handling