Replaced non-standard external 'prettytable' module with own function.