Handle class inheritance (Dirty magic inside)