Added getResource functionality - Not tested