Initial code for incremental builder. Incomplete.