Log errors, added template