Changed method parameters to (const &)