Added comments, reworked comparison.