Added the spinning code