Minor changes in makeschema and updatefield functions