Improved chance method
Added opt parsing