Add script to dump status to files