Async API for local and remote work - fixes #8