Implemented achievement API.