Added rudimentary cookie support.