Correctly proxy methods for classes