Finished turnoff function