Added array argument

Here is another feature that we need in our app. maybe its useful for others.