Adding startSpinning method and stopSpinning method.