Debug routine removed