Added method to print the status.