Added sprintf-like capability.