Added more debug messages to drawData()