Removing asserts from sound code