Maybe finised XS function. Need to add compton and score