Moved the content of metrics to auxiliarFunctions