Disgusting hack to make IR work.