Modifications to fit newest dbgl