Removed debug printfs.