[1650] Mako implemented, ready to rewiev.

Tests:
https://gist.github.com/Exorades/88a2aebbfe932d135936