Could this be templatized?