Read returned array properly