Updated to last API.

Signed-off-by: Wolftein <agustin.l.alvarez@hotmail.com>