Adding update command for lists to the problem