Cleans up API