Added more logging, half the time this works and half the time it doesn't
Added a reference to framework just because
Added clean references target back
Set debug config