Fixed bug causing arguments to be determined to be invalid, changed return values.