API basically working