Move all prints to logging