Added cookie functionality to base