Incorporated rustcheck code written by Andrew Pennebaker.