Adding missing sprintf