Fixing warning/error reporting issues.