Added variable length arguments to safePrint() function.