Fixed some debugging issues.