First main implementation after hexu lib... Tested!