Remove exception throw
Use long for cycles