Added cookie check on start