Trying to locate bug in drawing ready code.