Added getTotalPages() and seek() to API.