[shared] Program partly refactored