Changed so that only declared methods are displayed.