Finished implementation of quality metrics module.