Testing new framework with Matt's algorithm