Better method of getting opts then converting to integer