Asif & Aparna | Refactored Stack.create_or_update