Follows Kohana coding convention.
The code was minimally adapted to fit the convention.