Copy of https://bitbucket.org/sirchristian/asynk