Fixed loop + modified print