Added logic for finding random location in UFS mesh and other minor things