Added script for appending thread statistics to the bottom of a thread.