Add rebot logic