Implement base types and map worker.