Allow users to provide a custom value function after initialization.