Improvements on resources api.