Changes to package function expect