Easier way to get irCode from block