Add support for @base to algorithms