This function should really not need to take the data. However, we have refactored this in the #164 Parallel Branch, so we can defer fixing this for now.