Add fields and public method.