allFields function is renamed to more appropriate fields function.