commenting out use of $r->variable() because I think it may be the source of timeouts