Replaced all finalize methods with delete