Programming and clearing remotes