Fixed require to pass in array.