Add nested list functionality