Storing results to use later instead of calling the function twice.