Updated example with async usage. Closes #2.