Implemented updateFarm() and added some functions to help test.