Update common_functions.rb