Added a fprintfs to get the status for debugging.