Modified vote method to atomic transaction