For general use but need to pass tablename