Adding functionality to work with how losses are categorized.