You can always pass `currentDetails` in as a parameter. Your call, you know the code better.