Added code to serialize spin and stop commands.