Added debug information and new options in loading