Adding a null check to avoid NPE during send data call.
Put bk.resume call back in for sample app.