Add functions for getting and setting table fields and variables