Use threads instead of processes to share static variable. Duh!