Add custom methods to resources