Add functions for resources. It will be in 0.87