Working with Stateful Applications