Added load balancing and made some improvements in speed