Add several descriptive comments to the function
Add vector of replacement objects and the work function