Changed all methods that used components as arguments to use strings
(component names).