Make some dynamically generated methods private