Changes according API

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