Adding error log support