Update functions.rb