Added some warnings, and fixed some warnings.