RL implemented - looking for bugs.