Removed min percent and catching exceptions.