Make IR work both directions