@Override
    public int pulse() {
        Npc mime = npcs.getNearest(MIME_ID);
        if (mime != null) {
            Animation anim = Animation.forAnim(mime.getAnimation());
            if (anim != null && anim != lastAnimation) {
                lastAnimation = anim;
            }
        }
 
        if (lastPerformed == lastAnimation) {
            return 50;
        }
 
        List<Widget> validatedWidgets = widgets.getValidated(ANIM_FILTER);
        if (validatedWidgets.size() == 1) { // This should work fine..?
            Widget widget = validatedWidgets.get(0);
            if (widget.isValid()) {
                widget.click();
                Timer t = new Timer(1000);
                while (t.isRunning() && widget.isValid()) {
                    sleep(50);
                }
                lastPerformed = lastAnimation;
                return 50;
            }
        }
        return 100;
    }