Checks for GS_NAME before in or out.