- Refactored inlineCall function