Allow passing an array of options