Add type=int method to threshold argument