Improved the API base module and logging support.