Function naming and remove unneeded sprintf