Add support for global constructors.
Use sprintf in tasks.