Create Object with checking for errors