Changed wq to just write instead