Added field variables and reading of files