Converted closure to method