Fixed inferencefunction

The inferencefunction should be working now
Somethingsomething

hei håkon