Rewrite. Started coding an API.