Added checking for iprocs, still broken somewhere