Updated to 3.1.0

Fixed option checking issue.