Add method to retrieve the status