I don't remember what was done here (except this Result class which is taken from Kohana framework)