add the PrepareArgs function that turns logicals into numerals