Electronic quality control