Change for loop to each method.
Fix method names.