Added copyright, took the code from @Uberi https://github.com/Uberi


Signed-off-by: Exikle <dixondcunha@gmail.com>