You set the trap when the rat has gone.