The code was a piece of shit, now after refactoring is much more beautiful.