Implementing API controll.