Swapped the hide and ir code