Switched from itoa to sprintf