[UPDATE] modified API. Accepts an array.