Yeah it probably makes sense to put it down where we save the session variables. I'll make a sync specific function to maximize clarity.