Add sprintf and hide empty lines