Added 4th optional parameter for inherit/statics, see #2