Add procedural-style API.