Planning that fits things together