Implementing the Kermode potentials in the IMD code (Test case)