Adapted version of Kohana v3.3 for Koommerce