Rewrote sequences and load balancer func. Local sequences are now always executed first, followed by remote sequences