Added method endOf.