API updates and other bug fixes.