Implement handle_stat()