Modified the Server listening method