Changed position of cookies.set