Started writing IR code