Got rid of unnecessary prints on standard output