Implemented list but get infinite loop on medium sites.