Shortened the code a bit, time to see if arrays will work

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