Changed object to array