Added default type of loss