Used list library function instead of homebrew.