Use class instead of base pointer
Merge branch 'master' into plugins