Added api decorator.