Change param name from method to mode