Keep backwards compatibility with old versions of the api. Signed-off-by: David Calavera <david.calavera@gmail.com>