Added isAdmin option, since it seemed not to be present, yet still used.