Added automatic file name incrementation