Removed the fprintfs and most of the halts