Global Init and Debug functions added