Ending Cycles. Changing Behaviors Based on Memory.