Changes made by Yura Chen (neoser1989@rambler.ru).