Changed name_and_stack so that we return an array