Replace with method call