Remove data.table dependency