Improving deploy code