Various bugfix. Sync / ASync now part of the API.