Added collapse method