Added methods for Q-Learning