Complete Save function