Adds some state and exposes a function to update it.