Added api method (still doesn't work)