Added some debug messages in loader