Added comments explaining.