Changed code to comply with objectIO updates