Added option to init object with errval (not only numbers)