Working on routines for wave headers.....