Make it work together with ActiveResource