Updated bar script