Update functions.jl