Added asArray
Params reordered
Use asArray