Replaced deprecated constructor

So as not to break usage of deprecated class
This closes #367