Corrected 'function' to 'method'.