Added support for UploadMessages. Closes #31.