Added some CheckErrors in init