Adaptations on the print function. (it still need some repairments)