What determines which stage occurs after a supernova?