Fix lint errors and remove debug prints.