Unfinished work on function upload