- Added result parameter to internal function