Example code added for pcntl