FIX: Integer overflow causing crash in acceleration code.