More GUI-related security code.