Removes modifying filename and counter hack.