Add first, last functions