Added wait to the mole and spiritd