Move tailrec to be more visible, remove useless println