Updated plugin to perform uploads in a background thread.