Lowercased another function and removed unnecessary debug messages.