Make this generic.