Reworked print and assign.