Simplified API, finally not based on classes (!).