Deployment subsystem

Fixed, and added comment re: atomicity.