I can't remember but I believe this code was contributed by previous term student who originally gave us the talk editor and has been ported over to the various rewrites of it, I guess it may need a new review.