Made it asynchronous. TODO: update readme!

Signed-off-by: Alexander Cogneau <alexander.cogneau@hotmail.be>