Make task async
Add md5sum functions, refactor for testing