State management for prototypes