Work around buggy method finding. Needs doing properly with the parser