The code is quite an spaguetti mess, and needs hard-cleaning