More code in RLAgent class.