Add percent_valid method and use it in graphing result.