Change format to sprintf