Adding functions file