@Override
    public boolean add(T element) {
        T smallestElement = priorityQueue.peek();

        //Smaller than our smallest item. Do not add.
        if(smallestElement != null && (size() == maxSize) && element.compareTo(smallestElement) < 0){
            return false;
        }

        //Delete the previous entry to accommodate the new element.
        priorityQueue.remove(element);
        priorityQueue.add(element);

        /**
         * This new element didn't exist in the
         * queue. Time to kick out the little guy.
         */
        if(priorityQueue.size() > maxSize){
            priorityQueue.poll();
        }

        return true;
    }