Implement changeResourceBy method