Final submitted wtc_proc.c