Changed the way a function was implemented