Reconfigured List handling to use generators to handle generic elements