Change filename based on context