Finish Substitute functionality.