Updated: remove debug prints.