Cleaned up connection code to be more dynamic
Fixed off-by-one buffer error causing timeout error for some scales
(like Fairbanks)