Generify the do-get functionality