Updated cookie retrieval code.
Removed unused variables.
Updated solution file.