Altered to use constructor for filename.