Fixed #5. Added automatic upload option.