Added a function to get statuses