Added stub classes to keep backward compatibility

Fixes issue #196.