Added updateStop function