Cleaned up proc management a bit