Add helper functions for editing nested values