Refactoring

- Used reference to update the arguments array