Change GetStatus function