Removed TRACE() and replaced calls to it with calls to Msg() as they were both doing the same thing.