Used itoa() instead of sprintf()