Added (incomplete) implementation of ECM