:confused: I can't follow what's going on here. Could you break this down into multiple steps and/or comment what this logic does?