Removed debug prints.