Switched to resource rather than previous http calls