Added get status function