Minor api extensions.