Made tcp listener faster and prettier