Make more robust the interface with magma.