Deprecated 'assert' and added 'ensure' to replace it.