Hack: Added a usleep() call before painting the first document.