Add programmatic handler to launch recording