Added slot in print method