Fixed main to compile without FieldGenerator