Fixed adding packages but I hate the way it works. I will ahve to rewrit...

...e it.