WIP on expansion algorithm.