On The Control of a Pyrolysis Process