Implemented API call and some scaffolding.