Add IR program and make it work