Added double fork code