Removed the dependency on the -debug flag being used.