Add a sample function to process lowstate and generate dot output