Replaced printf with println