Optimize loading options and output debugging