Added functionality to 'pseudo-upload' script.