Updated generic LL, but has slight errors