Adds file naming according to k value