Added clean method to base Resource class