Updated API in bob.math requires changes here, too