Added print remaining to print_state