1. Added debug log support 2. Took out variables from resource name