Fixed off-by-one error
Changed opt level