Let one function perform modifications and another use the result