Added myfp file pointer. Output to this, not stdout.