Use 'method' variable instead of String