Minor API enhancement

Signed-off-by: Ladislav Klenovic <klenovic@nerdrobot.net>