Updated api module to new style guidelines.