Changed itoa for sprintf