Removed couts. Please make functions pure