Got spell api working