The routine was taken from the Little Red Book uploader,