Fix warnings and add sequential versio af wavefront