Minor changes to ir range and gesture recognition