Added file saving & automatic sending when connection present