Add locking in Apply(Apply now done!)