Small bma_serial cleanups
Some small math cleanups