changed the safe number back to 20
added table-outputting support