Added version 2 of the api