Update 'method' to be 'function'