Routines, genes and program-based behavior