Minor math changes