Added list_contains and list_add_dir functions.