Move check for cookie leaving to a different function (maybe there'll be an event for it later). Check for cookie despawn before firing tick event.