Added options for a start and end cookie check