Define the low-level API