Implement "Sell" state and refactoring runtime