Added a function for testing quality