Corrected some sloppy coding.