Started with pattern parsing, in progress.