IR Send function fixed and implemented