Modified code according to code style.