Add pipelined function to spec
Convert create file to function and re-use update function