Changed prototype of 'process' function