Update deploy logic