Allow 3rd parameters to either use array or closure.

Signed-off-by: crynobone <crynobone@gmail.com>