Add level algorithms

Useless assignment to variable - `train_counter`.