Add methods nextF and methodCheck
Changes for method checking