Add fromList function