Minor changes on API.

Signed-off-by: David Saradini <david.saradini@me.com>