Removed Unnecessary assertqueue and fix filenames for muliple writefiles