Changed the method signature to just take in a method string as well.