Added detector position and B parameters