Disclaimer: The author takes no responsibility for the corretness of the code or any damage incured from it's use.