Abstracted process code, and fixed on hhvm