Adding debug for resources