Removed unused parameter 'append_newlines'
Removed unneeded error handling in wfn(). wf() already handles everything.