Removed API and moved it to config