Overhaul wavefront.c and add new modes of operation