Refactored/implemented program modification code on both sides.