Changed code to attempt to work with calculation fp_det entity.