Retrieved Resources incorrectly, fixed match. Added some debug.