Adding function to read status from server