Cleaned up most warnings.