Fixed a bunch of warnings.
Fixed incorrect parameter type in requestForUploadCommand method.