Fixing multiple warnings.