Not important: I'd add the session-id as a parameter for this function.