Fixed issue with large field and added random field generator