Finished spin_instance() function