All class methods are wrapped inside a proxy function.