status function

Retrieves the status