Add printFn

printFn has been added.