Updated the location of assert
Eliminated a deprecation