Make Value serializable
Add getter for mode