Added some comments, made method private.