Add event sourcing, configurable environment