Fixed bugs, added wget as download backend.