Reformatted cookie check functions.