Modified the fields option to take an array.