Getting rid of fork again by implementing faster way to read information from proc.