Add support for recorded programs and fix retrieval of empty values