Replace method with function throughout