Recording and replaying Infrared signals from remote controls