Logic on properly deploying things - C#