1. Refactor api.(This is real api.)