Added cookie support for position tracking.