Some code cleaning from deprecated methods. Initialization of the variable block_duration missing in some of the toys(added).