Added TCP middleware and Resource manager