Turned warnings to eleven and fixed them.