Extends for Kohana3.