Adding function to easily access cookies.