Added fork functionality