Adjusted according to project's code standards and style.