Added spin() and stop() functions