allow the passing of an array of field names
Changed the name array to require the names key.