Added LastVisitedWave model.
Reformatted.